package com.wu.mp.common;

/**
 * className: JsonResult <br/>
 * author: xwu36 <br/>
 * date: 2019/7/2 14:20 <br/>
 * describe:
 *
 * @author xwu36
 */

public class JsonResult<T> {

    /**
     * 返回状态码
     */
    private int code;
    /**
     * 返回文本信息
     */
    private String msg;
    /**
     * 返回数据
     */
    private T data;

    public int getCode() {
        return code;
    }

    public JsonResult<T> setCode(int code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public JsonResult<T> setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public T getData() {
        return data;
    }

    public JsonResult<T> setData(T data) {
        this.data = data;
        return this;
    }
}
